package com.sub.project.info.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sub.project.info.prototype.Prototype;
import com.sub.project.info.vo.RestVo;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sub.framework.aspectj.lang.annotation.Excel;
import java.util.Date;

/**
 * 【请填写功能名称】对象 sys_project
 * 
 * @author ruoyi
 * @date 2020-01-08
 */
@TableName("tb_sys_project")
public class SysProject implements Prototype
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 项目名称 */
    @Excel(name = "项目名称")
    private String projectName;

    /** 开发环境 */
    @Excel(name = "开发环境")
    private String environmental;

    /** $column.columnComment */
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date startTime;

    /** $column.columnComment */
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date endTime;

    /** 描述 */
    @Excel(name = "描述")
    private String describ;

    /** 模块(多个模块用，隔开) */
    @Excel(name = "模块(多个模块用，隔开)")
    private String model;

    /** 介绍（项目介绍） */
    @Excel(name = "介绍", readConverterExp = "项目介绍")
    private String introduce;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String userId;

    /** $column.columnComment */
    private String createBy;

    /** $column.columnComment */
    @Excel(name = "用户ID")
    private Long createByUserId;

    /** 创建时间 */
    private Date createTime;

    /** $column.columnComment */
    private String updateBy;

    /** $column.columnComment */
    @Excel(name = "用户ID")
    private Long updateByUserId;

    /** 修改时间 */
    private Date updateTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setProjectName(String projectName) 
    {
        this.projectName = projectName;
    }

    public String getProjectName() 
    {
        return projectName;
    }
    public void setEnvironmental(String environmental) 
    {
        this.environmental = environmental;
    }

    public String getEnvironmental() 
    {
        return environmental;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public String getDescrib() {
        return describ;
    }

    public void setDescrib(String describ) {
        this.describ = describ;
    }

    public void setModel(String model)
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }
    public void setIntroduce(String introduce) 
    {
        this.introduce = introduce;
    }

    public String getIntroduce() 
    {
        return introduce;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public void setCreateBy(String createBy)
    {
        this.createBy = createBy;
    }

    public String getCreateBy() 
    {
        return createBy;
    }
    public void setCreateByUserId(Long createByUserId) 
    {
        this.createByUserId = createByUserId;
    }

    public Long getCreateByUserId() 
    {
        return createByUserId;
    }
    public void setCreateTime(Date createTime) 
    {
        this.createTime = createTime;
    }

    public Date getCreateTime() 
    {
        return createTime;
    }
    public void setUpdateBy(String updateBy) 
    {
        this.updateBy = updateBy;
    }

    public String getUpdateBy() 
    {
        return updateBy;
    }
    public void setUpdateByUserId(Long updateByUserId) 
    {
        this.updateByUserId = updateByUserId;
    }

    public Long getUpdateByUserId() 
    {
        return updateByUserId;
    }
    public void setUpdateTime(Date updateTime) 
    {
        this.updateTime = updateTime;
    }

    public Date getUpdateTime() 
    {
        return updateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("projectName", getProjectName())
            .append("environmental", getEnvironmental())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("dec", getDescrib())
            .append("model", getModel())
            .append("introduce", getIntroduce())
            .append("userId", getUserId())
            .append("createBy", getCreateBy())
            .append("createByUserId", getCreateByUserId())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateByUserId", getUpdateByUserId())
            .append("updateTime", getUpdateTime())
            .toString();
    }

    @Override
    public Prototype clone() {
        RestVo restVo = new RestVo();
        restVo.setContent(this.environmental);
        restVo.setId(this.id);
        restVo.setName(this.projectName);
        restVo.setRemarks(this.describ);
        restVo.setStartTime(this.startTime);
        restVo.setEndTime(this.endTime);
        return restVo;
    }
}
